const express = require('express');
const bodyParser = require('body-parser');
var urlencodedParser = bodyParser.urlencoded({ extended: false });
let controller = require('../controller/controller');
let router = express.Router();
router.get('/', urlencodedParser, controller.index);
// 登录
router.post('/login', urlencodedParser, controller.Login);

// 注册
router.post('/register', controller.register);
// 公交路线
// router.get('/busList', controller.busList)
// 新闻
router.get('/hotNews', controller.hotNews);

module.exports = router;
